<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      background-color: #fbfdee;
    }

    .base_box {
      width: 150px;
      height: 200px;
      background-color: #fff;
      box-shadow: 0 8px 53px 0 rgb(6 19 138 / 6%);
      font-size: 32px;
      line-height: 200px;
      text-align: center;
    }

    /* 依靠 margin 负值，去除 width 增长影响 */

  </style>
  <link rel="stylesheet" href="./box_wrap.css">
  <link rel="stylesheet" href="">
</head>

<body>
  <div class="box_wrap">
    <div class="box_item base_box">1</div>
    <div class="box_item base_box">2</div>
    <div class="box_item base_box">3</div>
    <div class="box_item base_box">4</div>
    <div class="box_item base_box">5</div>
  </div>

  <div class="box_wrap_2">
    <div class="default">
      <div class="default__item base_box">1</div>
      <div class="default__item base_box">2</div>
      <div class="default__item base_box">3</div>
      <div class="default__item base_box">4</div>
      <div class="default__item base_box">5</div>
    </div>
    <div class="active">
      <div class="active__item base_box">1</div>
      <div class="active__item base_box">2</div>
      <div class="active__item base_box">3</div>
      <div class="active__item base_box">4</div>
      <div class="active__item base_box">5</div>
    </div>
  </div>
</body>

</html>